package com.lzh.tiktok.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.tiktok.user.entity.MessageEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lizhihang
 * @create 2023-01-29 14:13
 */
public interface MessageDao  extends BaseMapper<MessageEntity> {
    MessageEntity selectNewMessage(@Param("user_id") String user_id, @Param("friendUserId") Integer friendUserId);

    List<MessageEntity> selectAllMessage(@Param("to_user_id") String to_user_id, @Param("userId") Long userId);
}
